var express = require('express');
var router = express.Router();
var BaseData = require('../.././config/db');
db = new BaseData();
db.connection.connect();

/* GET home page. */
router.get('/', function(req, res, next) {
	if(req.session.token) {
		var Str = req.session.token;
		var User_id = db.Toolaes(Str.toString().split("_")[0], "Decrypt");
		res.render('admin/SiteConfig/seo', {
			User_id: User_id,
			title:"SEO设置",
			Parameter:4
		});
	} else {
		res.render('admin/SiteConfig/seo', {
			User_id: null,
			title:"SEO设置",
			Parameter:4
		});
	}
})

module.exports = router;